package com.zr.paymentInformation.mapper;

import com.zr.paymentInformation.pojo.PaymentInformation;
import com.zr.paymentInformation.pojo.PaymentInformationAddVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by Administrator on 2019/7/3 0003.
 */
@Mapper
public interface PaymentInformationMapper {

    @Insert("insert into paymentinformation(myCourse,amountInstallments,paymentCycle,classHours,createTime,createName,updateTime," +
            "updateName)" +
            "values(#{myCourse},#{amountInstallments},#{paymentCycle},#{classHours},#{createTime},#{createName},#{updateTime},#{updateName})")
    int installmentApply(PaymentInformation paymentInformation);

    @Select("select myCourse,amountInstallments,paymentCycle,classHours from paymentinformation where payOffStatus=0")
    PaymentInformationAddVo queryById(Integer id);
}
